package com.copm.ifm.common.process.entity.template;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copm.ifm.common.process.core.emum.ExamineTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 流程条件实体类
 *
 * @author zzf
 * @date 12:01 2021/3/16
 */
@Getter
@Setter
@TableName("process_condition_define")
@ApiModel("流程条件实体类")
public class ProcessCondition {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "流程id")
    private Long processId;

    /**
     * @see ExamineTypeEnum
     */
    @ApiModelProperty("涉及到的表对象")
    private Integer targetType;

    @ApiModelProperty("字段名")
    private String fieldName;

    /**
     * @see com.copm.ifm.common.process.core.emum.CompareTypeEnum
     */
    @ApiModelProperty("比较类型")
    private Integer compareType;

    @ApiModelProperty("比较的值（部分用数组的json字符串形式保存）")
    private String vals;

    @ApiModelProperty("上一个节点id(为0表示起始分叉)")
    private Long prevNodeId;

    @ApiModelProperty("下一个节点id")
    private Long nextNodeId;

}
